#ifndef NDD_SETTING_PANNEL_H
#define NDD_SETTING_PANNEL_H
#include <QWidget>
#include <QSettings>
#include "Conversion.h"
#include "ui_SettingClass.h"

class SettingPannel : public QWidget
{
	Q_OBJECT
public:
	SettingPannel(QWidget *parent, QString rootPath);
	~SettingPannel();
	void GetConfigPath(QString rootPath);
	void LoadConfig();
	void SaveConfig();

private:
	static bool IsInteger(QString val);
	static QString FromUint(unsigned int val);

private slots:
	void OnSave();

private:
	QString configPath;

public:
	Ui::SettingClass ui;
	ConvertSetting cfg;
};
#endif // NDD_SETTING_PANNEL_H